## -*- Makefile -*-
##
## User: diego
## Time: Aug 17, 2010 11:19:00 PM
## Makefile created by Oracle Solaris Studio.
##
## This file is generated automatically.
##

etapa6: tac.o ast_tester.o symbol_table.o ast.o y.tab.o lex.yy.o analyzer.o main.o
	gcc -o etapa6 y.tab.o lex.yy.o tac.o ast_tester.o symbol_table.o ast.o analyzer.o main.o

analyser.o: analyzer.c
	gcc -c analyzer.c

symbol_table.o: symbol_table.c
	gcc -c symbol_table.c

tac.o: tac.c
	gcc -c tac.c

ast.o: ast.c
	gcc -c ast.c

lex.yy.o: lex.yy.c
	gcc -c lex.yy.c

lex.yy.c: scanner.l
	 flex --header-file=lex.yy.h scanner.l

y.tab.o: y.tab.c
	 gcc -c y.tab.c

y.tab.c: parser.y
	 yacc -d parser.y

ast_tester.o: ast_tester.c
	gcc -c ast_tester.c

main.o: main.c
	gcc -c main.c

clean:
	rm *.o y.tab.c lex.yy.c y.tab.h lex.yy.h etapa6
